/**  
* @Title: ErrorControl.java
* @Package com.lemon.controller.faq
* @Description: (一句话阐述):
* @author Ran_cc
* @date 2018年6月6日
* @version V1.0  
*/
package com.lemon.controller.faq;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;


/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Company: </p>
 * @author Ran_cc
 * @date 2018年6月6日
 * @版本 V 1.0 
 */
@RestController
public class ErrorControl {
	private static final Logger log = LoggerFactory.getLogger(ErrorControl.class);
	//商品详情页面加载异常 / 或者商品不存在
	@RequestMapping(value = "/error/itemDetailError")
	public ModelAndView itemDetailError() {
		System.out.println(123456);
		String p = "tk/itemDetail404.html";
		return new ModelAndView(p);
	}
	//去登陆页面
	@RequestMapping(value = "/account/login")
	public ModelAndView login() {
		log.info("重定向到登陆页面");
		String p = "../public/account/login.html";
		return new ModelAndView(p);
	}

	//去登陆页面
	@RequestMapping(value = "/error/userInfoError")
	public ModelAndView userIinfoError() {
		String p = "../public/errorUserInfo.html";
		return new ModelAndView(p);
	}

}
